<h1>Listing exits</h1>

<table>
  <tr>
    <th>Map</th>
    <th>Direction</th>
    <th>Description</th>
    <th>Destination</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @exits.each do |exit| %>
  <tr>
    <td><%= exit.map_id %></td>
    <td><%= exit.direction %></td>
    <td><%= exit.description %></td>
    <td><%= exit.destination_id %></td>
    <td><%= link_to 'Show', exit %></td>
    <td><%= link_to 'Edit', edit_exit_path(exit) %></td>
    <td><%= link_to 'Destroy', exit, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Exit', new_exit_path %>
